<?php

spider_job_get('demo', '*/5 * * * *', 'http://spider.yao-yang.cn/target', 'json', [
    'test' => 'a',
    'test3.a' => 'b',
], function ($data) {

    $data['c'] = datetime();

    return $data;
});

spider_job_get('rss_36kr', '0 * * * *', 'https://36kr.com/feed', 'xml', 'channel.item', function ($article) {

    $res = baidu_ai_nlp_news_summary($article['title'], strip_tags($article['description']));
    
    log_module('rss_36kr', print_r($res, true));

    slack_say_to_admin($res['summary'].' '.$article['link']);

    return $article;

}, 'link_3g');